From f8999577fd4b008ae760d2b40a4919a420a9d95a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 10 Sep 2006 21:46:54 +0000 Subject: [PATCH] * Clear newtalk marker on diff links with explicit current revision number --- RELEASE-NOTES | 1 + includes/Article.php | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 614601afbf..5699aca4dc 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -191,6 +191,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6888) PHP error for call to getTimestamp() on bad input to Special:Revisiondelete * (bug 7252) Use dvipng support in texvc math rastrization. dvipng is required if texvc is rebuilt. * (bug 7279) Use wfBaseName in place of basename() in more places +* Clear newtalk marker on diff links with explicit current revision number == Languages updated == diff --git a/includes/Article.php b/includes/Article.php index 368210f4ff..f32e15e73c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -658,8 +658,10 @@ class Article { // DifferenceEngine directly fetched the revision: $this->mRevIdFetched = $de->mNewid; $de->showDiffPage(); - - if( $diff == 0 ) { + + // Needed to get the page's current revision + $this->loadPageData(); + if( $diff == 0 || $diff == $this->mLatest ) { # Run view updates for current revision only $this->viewUpdates(); } -- 2.20.1